﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="adm_stats_report.aspx.cs" Inherits="Admin_adm_stats_report" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<h3>Stats Report</h3>
<div>&nbsp;</div>
<div> <asp:Literal ID="ltrWellcome" runat="server"></asp:Literal></div>
<table width="600" cellspacing="0" cellpadding="0" border="0">	
								<tbody><tr>
									<td>
										<table width="200" cellspacing="0" cellpadding="3" border="0">
											<tbody><tr colspan="2" class="clsTitle"><td>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td><td colspan="2">Search By:</td></tr>
											<tr>
												<td>
													&nbsp;</td>
												<td>
													<asp:DropDownList ID="ddlSField" runat="server" CssClass="frmSort">
                                                        <asp:ListItem Value="RefName">Site</asp:ListItem>
                                                        <asp:ListItem Value="URL"></asp:ListItem>
                                                    </asp:DropDownList>
                                                    &nbsp;</td>
												<td>
                                                    <asp:Button ID="btnSearch" runat="server" CssClass="btnGo" Text="Search" />
                                                </td>
											</tr>
											<tr>
												<td>
													&nbsp;</td>
												<td>
                                                    <asp:TextBox ID="txtSValue" runat="server" CssClass="frmSort"></asp:TextBox>
                                                </td>
												<td>
                                                    &nbsp;</td>
											</tr>
											<tr>
												<td>
                                                    &nbsp;</td>								
												<td colspan="2">
                                                    &nbsp;</td>								
											</tr>
										</tbody></table>
									</td>
									<td width="20">&nbsp;</td>
									<td align="right">
										<table cellspacing="0" cellpadding="3" border="0" bgcolor="#e55a5d">
											<tbody><tr>
												<td class="clsTitle">Sort By:</td>
												<td class="clsTitle">&nbsp;</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>
													<asp:DropDownList ID="ddlSortBy" runat="server" CssClass="frmSortS">
                                                        <asp:ListItem Value=" "> Sort By</asp:ListItem>
                                                        <asp:ListItem Value="RefName">Site</asp:ListItem>
                                                        <asp:ListItem Value="URL"></asp:ListItem>
                                                        <asp:ListItem>Today</asp:ListItem>
                                                        <asp:ListItem>Yesterday</asp:ListItem>
                                                        <asp:ListItem>This month</asp:ListItem>
                                                        <asp:ListItem Value="TotalHit">Tota lHit</asp:ListItem>
                                                    </asp:DropDownList>
                                                    &nbsp;</td>
												<td>
													&nbsp;</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>
													<asp:DropDownList ID="ddlOrderBy" runat="server" CssClass="frmSortS">
                                                        <asp:ListItem Value=" ">Sort Order</asp:ListItem>
                                                        <asp:ListItem Value="ASC">A-Z</asp:ListItem>
                                                        <asp:ListItem Value="DESC">Z-A</asp:ListItem>
                                                    </asp:DropDownList>
                                                    &nbsp;</td>
												<td>
													&nbsp;</td>
												<td algin="right">
													<asp:Button ID="btnReset" runat="server" CssClass="btnGo" Text="Reset" />
                                                    &nbsp;													
													<asp:Button ID="btnFilter" runat="server" CssClass="btnGo" Text="Filter" />
                                                    &nbsp;</td>
											</tr>														
										</tbody></table>
									</td>
								</tr>			
								</tbody></table>
								&nbsp;
								<div>
								
								</div>
								<div>
								<asp:Literal ID="ltrPaging" runat="server"></asp:Literal>
								</div>
								<div style="padding:20px;">
								    <asp:GridView ID="grvStatistic" runat="server" AutoGenerateColumns="False" 
                                        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                                        CellPadding="4" ForeColor="Black" GridLines="Vertical">
                                        <RowStyle BackColor="#F7F7DE" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="Site">                                                
                                                <ItemTemplate>
                                                <a class="" href='adm_stats_report_det.aspx?ckid=<%= ckid %>&fefid=<%# Eval("RefID") %>'>
                                                    <%# Eval("RefName")%>
                                                    </a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="URL">
                                            <ItemTemplate>
                                                    <%# Eval("URL")%>
                                                </ItemTemplate>
                                                </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Today">
                                            <ItemTemplate>
                                                    <%# Eval("Today")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Yesterday">
                                            <ItemTemplate>
                                                    <%# Eval("Yesterday")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="This month">
                                            <ItemTemplate>
                                                    <%# Eval("Thismonth")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Total hit">
                                            <ItemTemplate>
                                                    <%# Eval("Totalhit")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <FooterStyle BackColor="#CCCC99" />
                                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                        <AlternatingRowStyle BackColor="White" />
                                    </asp:GridView>
								</div>
</asp:Content>

